<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>遗失物品招领</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/swiper-3.2.7.min.css">
	<link rel="stylesheet" href="css/fakeLoader.css">
	<script src="js/zepto.js"></script>
	<script src="js/common.js"></script>
	<script src="js/jquery-2.1.4.min.js"></script>
	<script src="js/fakeLoader.min.js"></script>
</head>
<body>
	<div class="index lost-article">
		<div class="header-all">
			<div class="s-header">
				遗失物品招领
			</div>
		</div>
		<div class="mess-main-top">
			<label for="">
				<input class="keyword" type="text" value="输入关键字" onfocus="this.value=''" onblur="if(this.value==''){this.value='输入关键字'}" />
				<p class="mess-frame">
					<label>
						<input id="installTime" name="installTime" readonly type="text" placeholder="点击选择出发时间">
					</label>
					<span>&nbsp;</span>
					<label>
						<input id="installTime2" name="installTime2" readonly type="text" placeholder="点击选择达到时间">
					</label>
				</p>
				<button>查询</button>
			</label>
		</div>
		<div class="m-footer">
			<a href="message.html">
				<div></div>
				<span>顾客留言</span>
			</a>
			<a class="f-select" href="lost-article.html">
				<div></div>
				<span>失物招领</span>
			</a>
		</div>
	</div>
	<div class="fakeloader"></div>
	<script type="text/javascript" src="js/jedate/jedate.js"></script>
	<script type="text/javascript">

	    var currentDate = curentTime();
	    var currentDate2 = curentTime();
	    jeDate({
	        dateCell:"#installTime",
	        format:"YYYY-MM-DD",
	        minDate:currentDate,
	        //清除按钮
	        clearfun:function(val) {
	            $("#installTimeInfo").html("安装时间不能为空");
	            $("#installTimeInfo").show();
	        },
	        //选中日期按钮
	        choosefun:function(val) {
	            $("#installTimeInfo").hide();
	        }
	    });
	    jeDate({
	        dateCell:"#installTime2",
	        format:"YYYY-MM-DD",
	        minDate:currentDate2,
	        //清除按钮
	        clearfun:function(val) {
	            $("#installTimeInfo").html("安装时间不能为空");
	            $("#installTimeInfo").show();
	        },
	        //选中日期按钮
	        choosefun:function(val) {
	            $("#installTimeInfo").hide();
	        }
	    });


	    function curentTime()
	    {
	        var now = new Date();
	        // 年
	        var year = now.getFullYear();
	        // 月
	        var month = now.getMonth() + 1;
	        // 日
	        var day = now.getDate();

	        return currentDate = year + "-" + month + "-" + day;
	    }
	    
	    // 到达时间位置控制
	    $('#installTime2').click(function() {
	    	$('#jedatebox').css({
		    	'left': '18%'
		    })
	    })
	</script>
</body>
</html>